//
//  fileDownloader.h
//  03-大文件下载
//
//  Created by 王禹丞 on 15/11/11.
//  Copyright © 2015年 WYC. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FileDownloader : NSObject

@property (nonatomic,copy) NSString *url;

@property (nonatomic,copy) NSString *destPath;

@property (nonatomic,readonly,getter = isDownloading) BOOL downloading;

@property (nonatomic,copy) void(^progressHandler)(double progress);

@property (nonatomic,copy) void(^completionHandler)();

@property (nonatomic,copy) void(^failureHandler)(NSError *error);

- (void)start;

- (void)pause;
@end
